public class Test1 {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person person1=new Person();
        Person person2=(Person)person1.clone();
        System.out.println("通过person2修改前的结果");
        System.out.println(person1.money.m); //666
        System.out.println(person2.money.m); //666
        person2.money.m=888;
        System.out.println("通过person2修改后的结果");
        System.out.println(person1.money.m); //888
        System.out.println(person2.money.m); //888

    }

}
//由此可见在克隆时，只克隆了Person对象，但是Person对象中的Money对象，并没有克隆，这是浅拷贝